package com.example.service.impl;

import com.example.entity.Customer;
import com.example.entity.Emp;
import com.example.mapper.LoginMapper;
import com.example.service.LoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class LoginServiceImpl implements LoginService {
    @Autowired
    private LoginMapper loginMapper;

    @Override
    public Emp empLogin(Emp emp) {
        return loginMapper.empLogin(emp);
    }

    @Override
    public Customer customerLogin(Customer customer) {
        return loginMapper.customerLogin(customer);
    }
}
